package lormi.meipin.service.impl;


import org.springframework.stereotype.Service;

import lormi.meipin.dto.AddComplain;
import lormi.meipin.entity.Complain;
import lormi.meipin.exception.LMException;
import lormi.meipin.service.BaseService;
import lormi.meipin.service.IComplainService;

@Service
public class ComplainService extends BaseService implements IComplainService{

	@Override
	public void addComplain(AddComplain addComplain) throws LMException {
		if (complainMapper.insert(new Complain(addComplain.getUserid(),addComplain.getComplainid(),addComplain.getType(),addComplain.getContent()))<1) {
			throw new LMException(100035);
		}
	}

	
}
